<?php
// +----------------------------------------------------------------------
// | Tpli [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Author 荒年 < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 左边侧边栏头部导航
// +----------------------------------------------------------------------

namespace app\admin\controller;
use app\admin\model\AdminMenu as AdminMenuModel;
use \think\Session;
use \think\Cookie;
use \think\Db;
class Index extends Base
{
  public function index()
  {
    $menus = AdminMenuModel::getAllAdminMenu();
    $this->assign('menus',$menus);
    $cookie = Db::name('admin')->where('id',Session::get('admin'))->find();
    $this->assign('cookie',$cookie);
    return $this->fetch();
  }
}
?>